package com.cskaoyan.mapper;

import com.cskaoyan.bean.Authority;
import com.cskaoyan.bean.AuthorityExample;
import java.util.List;

import com.cskaoyan.bean.admin.vo.AuthoritySonVO;
import org.apache.ibatis.annotations.Param;

public interface AuthorityMapper {
    long countByExample(AuthorityExample example);

    int deleteByExample(AuthorityExample example);

    int deleteByPrimaryKey(Integer primaryId);

    int insert(Authority record);

    int insertSelective(Authority record);

    List<Authority> selectByExample(AuthorityExample example);

    Authority selectByPrimaryKey(Integer primaryId);

    int updateByExampleSelective(@Param("record") Authority record, @Param("example") AuthorityExample example);

    int updateByExample(@Param("record") Authority record, @Param("example") AuthorityExample example);

    int updateByPrimaryKeySelective(Authority record);

    int updateByPrimaryKey(Authority record);

    List<AuthoritySonVO> selectAuthorityByPid(int pid);

    List<String> queryApiByPerms(List<String> perms);
}